package com.wingscode.modules.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wingscode.modules.common.entity.UserEntity;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户
 *
 * @author yan
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {
    void deleteById(@Param("id") Integer id);

    IPage<UserEntity> getList(IPage<UserEntity> page, @Param("mobile") String mobile, @Param("username") String username, @Param("status") Integer status);

    List<UserEntity> getListByAgent(@Param("agentId") Integer agentId);
}
